package com.slipper.system.menu.controller;

import com.slipper.system.menu.bo.PageMenuBO;
import com.slipper.system.menu.service.PageMenuService;
import com.slipper.util.*;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 菜单信息表
 */
@RestController
@RequestMapping("/system/menu")
public class PageMenuController {
    @Resource
    private PageMenuService pageMenuService;

    @PostMapping("/save")
    public String save(@RequestBody PageMenuBO bo) {
        return ResultUtil.saveResult(pageMenuService.save(bo), bo);
    }
}
